import sevoes from "@/util/Http";
function listInquire(data) {//查询
  return sevoes({
    method: "get",
    params: {
      _gp: "admin.order",
      _mt: "list",
      ...data
    }
  });
}

function detailInquire(data) {//详情
  return sevoes({
    method: "get",
    params: {
      _gp: "admin.order",
      _mt: "detail",
      ...data
    }
  });
}

function ship(data) {//发货
  return sevoes({
    method: "get",
    params: {
      _gp: "admin.order",
      _mt: "ship",
      ...data
    }
  });
}

function queryToExcel(data) {//查询订单信息
  return sevoes({
    method: "get",
    params: {
      _gp: "admin.order",
      _mt: "queryToExcel",
      ...data
    }
  });
}

function refund(data) {//退款
  return sevoes({
    method: "get",
    params: {
      _gp: "admin.order",
      _mt: "refund",
      ...data
    }
  });
}

function editAdminMono(data) {//编辑
  return sevoes({
    method: "POST",
    params: {
      _gp: "admin.order",
      _mt: "editAdminMono",
      ...data
    }
  });
}

export default {listInquire,detailInquire,ship,queryToExcel,refund,editAdminMono}